FROM php:alpine3.7
RUN apk update && apk upgrade
RUN apk add m4 autoconf make gcc g++
RUN apk add linux-headers
ADD ./install/swoole-2.1.1.tgz /tmp/
RUN cd /tmp/swoole-2.1.1 && phpize && ./configure && make && make install
RUN docker-php-ext-enable swoole
CMD ["php",'-m']
